package com.qf.ts.platform.front.web;

import com.qf.ts.platform.front.service.CodeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/code")
public class CodeController {

    @Autowired
    private CodeService codeService;

    @GetMapping("/")
    @ApiOperation(value = "用来生成短信验证码并发送")
    public void getCode(){

        codeService.getCode();

    }

}
